home *** CD-ROM | disk | FTP | other *** search
-
-
-
- ccccppppuuuusssseeeettttGGGGeeeettttCCCCPPPPUUUUCCCCoooouuuunnnntttt((((3333xxxx)))) ccccppppuuuusssseeeettttGGGGeeeettttCCCCPPPPUUUUCCCCoooouuuunnnntttt((((3333xxxx))))
-
-
-
- NNNNAAAAMMMMEEEE
- cpusetGetCPUCount - obtain the number of CPUs configured on the system
-
- SSSSYYYYNNNNOOOOPPPPSSSSIIIISSSS
- ####iiiinnnncccclllluuuuddddeeee <<<<ccccppppuuuusssseeeetttt....hhhh>>>>
-
- iiiinnnntttt ccccppppuuuusssseeeettttGGGGeeeettttCCCCPPPPUUUUCCCCoooouuuunnnntttt((((vvvvooooiiiidddd))));;;;
-
- DDDDEEEESSSSCCCCRRRRIIIIPPPPTTTTIIIIOOOONNNN
- The _c_p_u_s_e_t_G_e_t_C_P_U_C_o_u_n_t function returns the number of CPUs that are
- configured on the system.
-
- EEEEXXXXAAAAMMMMPPPPLLLLEEEESSSS
- This example obtains the number of CPUs configured on the system and then
- prints out the result.
-
- int ncpus;
-
- if ( !(ncpus = cpusetGetCPUCount()) ) {
- perror("cpusetGetCPUCount");
- exit(1);
- }
- printf("The systems is configured for %d CPUs\n",
- ncpus);
-
-
- NNNNOOOOTTTTEEEESSSS
- _c_p_u_s_e_t_G_e_t_C_P_U_C_o_u_n_t is found in the library "libcpuset.so", and will be
- loaded if the option _----_llll_cccc_pppp_uuuu_ssss_eeee_tttt is used with _cccc_cccc(1) or _llll_dddd(1).
-
- SSSSEEEEEEEE AAAALLLLSSSSOOOO
- cpuset(1), cpuset(5).
-
- DDDDIIIIAAAAGGGGNNNNOOOOSSSSTTTTIIIICCCCSSSS
- If successful, _c_p_u_s_e_t_G_e_t_C_P_U_C_o_u_n_t returns a value greater than or equal to
- 1. If _c_p_u_s_e_t_A_t_t_a_c_h fails, it returns the value 0 and eeeerrrrrrrrnnnnoooo is set to
- indicate the error. The values for eeeerrrrrrrrnnnnoooo include those values as set by
- _s_y_s_m_p(2) and the following:
-
- EEEERRRRAAAANNNNGGGGEEEE
- Number of CPUs configured on the system is not a value greater than
- or equal to 1.
-
-
-
-
-
-
-
-
-
-
-
-
-
- PPPPaaaaggggeeee 1111
-
-
-
-